package com.choosefine.it.basedata.dao;

import java.util.List;
import java.util.Map;

import com.choosefine.it.basedata.model.Worker;
import com.github.pagehelper.Page;

/**
 * 工人相关映射
 * @author guwenwei
 * 2016/11/15
 */
public interface WorkerMapper {

	int deleteByPrimaryKey(Integer id);

	int insert(Worker record);

	int insertSelective(Worker record);

	Worker selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Worker record);

	int updateByPrimaryKey(Map<String,Object> record);

	List<Worker> selectAll();

	Worker findByUserCode(String UserCode);

	int deleteByUserCode(Map<String,Object> UserCode);
	
	Page<Worker> getUserList();
}